AddTextObject Method (Section Object)

The AddTextObject method adds a TextObject Object to the Section Object. String parameter pText can contain formatting information such as tab stops and carriage returns.

Syntax

Function AddTextObject (pText As String,     Left As Long, Top As Long, [formatText]) As TextObject

Parameters

Parameter Description

pText

Specifies the text that you want to add.

Left

Specifies the offset of the top left corner of the Object that you are adding relative to the top left corner of the parent Section, in twips.

Top

Specifies the offset of the top left corner of the Object that you are adding relative to the top left corner of the parent Section, in twips.

[formatText]

Boolean. If TRUE, the text will be formatted according to the formatting characters included in the text string (for example, carriage returns, tabs, etc.). If FALSE, formatting characters in the text string will be ignored.

Returns

Returns a FieldObject Object.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com